Switch Button
Type
widget
Summary
This widget is a switch button, consisting of two mutually exclusive choices or states.
Description
This widget is a switch button, consisting of two mutually exclusive choices or states.
Associated Syntax
Message
| Name | Summary | Syntax |
|---|---|---|
| hiliteChanged | Sent when the switch is changed to either the on or off position | hiliteChanged |
Property
| Name | Summary | Syntax |
|---|---|---|
| backColor | Controls the background color of the switch button | get the backColor of <widget> set the backColor of <widget> to <pColor> |
| hiliteColor | Controls the color of the switch button when it is in the on position | get the hiliteColor of <widget> set the hiliteColor of <widget> to <pColor> |
| borderColor | Controls the color of the switch button when it is in the on position | get the borderColor of <widget> set the borderColor of <widget> to <pColor> |
| theme | Specifies the theme to use when drawing the switch button. | get the theme of <widget> set the theme of <widget> to <pWidgetTheme> |
| highlight | Whether the switch is on or off | get the highlight of <widget> set the highlight of <widget> to {true | false} |
| showBorder | Whether the widget has a border or not. | get the showBorder of <widget> set the showBorder of <widget> to {true|false} |